<!-- 博客首页 -->
{{ extend './_layouts/home.html'}} {{block 'title'}}{{'多人博客 - 首页'}} {{/block}} {{block 'body'}}
<section class="container">
    <ul class="media-list">
        <div class="wpl">
            <p>暂时没有内容,去发布自己的博客吧！</p>
        </div>
        {{ each topics }}
        <li class="media tcs">
            <div class="media-left">
                <a href="/settings/content?id={{ $value.user[0]._id }} ">
                    <img width="40 " height="40 " class="media-object " src="../{{$value.user[0].avatar}} "> {{ $value.user[0].nickname }}
                </a>
            </div>
            <div class="media-body " style=" padding-left: 25px; ">
                <h3 class="media-heading ">
                    {{ $value.title }}
                </h3>
                <hr>
                <h4 class="media-heading ">
                    <a href="/topic/show?id={{ $value._id }} ">

                        {{ $value.message }}
                    </a>
                </h4>
                <p style="text-align: right; font-size: 10px; ">
                    {{ sd($value.dateTime) }}
                </p>
            </div>
            <hr>
        </li>
        {{ /each}}


    </ul>


</section>
<script src="/node_modules/jquery/dist/jquery.js "></script>
<script>
    if ($(".tcs ").html()) {
        $(".wpl ").hide();
    }
</script>

{{/block}}